﻿<%@ Page Title="ResourceBlender.NET" Language="C#" MasterPageFile="~/Layout.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="contentHead" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="cntMain" Runat="Server">
    <h1><asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:UIStrings, Dashboard %>" /></h1>
    <asp:ObjectDataSource ID="dsApplications" runat="server" TypeName="ResourceBlender.DAL.ResourceBlenderDAL" SelectMethod="GetApplications">
        <SelectParameters>
            <asp:Parameter Name="includeBundles" Type="Boolean" DefaultValue="true" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:Repeater ID="rptApplications" runat="server" DataSourceID="dsApplications" OnItemDataBound="rptApplications_ItemDataBound">
        <ItemTemplate>
            <h2><%# Eval("DisplayName") %></h2>
            <dl>
                <dt><asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:UIStrings, Bundles %>" /></dt>
                <dd><%# Eval("BundleNames") %></dd>
                <dt><asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:UIStrings, Languages %>" /></dt>
                <dd><%# Eval("LanguageNames") %></dd>
            </dl>
        </ItemTemplate>
    </asp:Repeater>
    <asp:PlaceHolder runat="server" ID="plcNoItems">
        <p><asp:Literal ID="litApplications" runat="server" Text="<%$ Resources:UIStrings, NoApplicationsAdded %>"/></p>
    </asp:PlaceHolder>
</asp:Content>

